<!--&lt;!&ndash;&lt;!&ndash; Button trigger modal &ndash;&gt;&ndash;&gt;-->
<!--<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">-->
  <!--xxx-->
<!--</button>-->


<!--<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">-->
  <!--<div class="modal-dialog" role="document">-->
    <!--<div class="modal-content">-->
      <!--<div class="modal-header">-->
        <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span-->
          <!--aria-hidden="true">&times;</span></button>-->
        <!--<h4 class="modal-title" id="myModalLabel">用户登陆</h4>-->
      <!--</div>-->
      <!--<div class="modal-body">-->
        <!--<form class="form-horizontal">-->
          <!--<div class="form-group">-->
            <!--<label for="inputEmail3" class="col-sm-2 control-label">Username</label>-->
            <!--<div class="col-sm-10">-->
              <!--<input type="text" class="form-control" id="inputEmail3" placeholder="username" name="username">-->
            <!--</div>-->
          <!--</div>-->
          <!--<div class="form-group">-->
            <!--<label for="inputPassword3" class="col-sm-2 control-label">Password</label>-->
            <!--<div class="col-sm-10">-->
              <!--<input type="password" class="form-control" id="inputPassword3" placeholder="Password" name="password">-->
            <!--</div>-->
          <!--</div>-->
          <!--<div class="form-group">-->
            <!--<div class="col-sm-offset-2 col-sm-10">&ndash;&gt;-->
              <!--<button type="submit" class="btn btn-default">Sign in</button>-->
              <!--&ndash;&gt;-->
            <!--</div>-->
          <!--</div>-->

          <!--<div class="modal-footer">-->
            <!--<button type="submit" class="btn btn-primary">Sign In</button>-->
            <!--<button type="reset" class="btn btn-primary">Reset</button>-->
            <!--<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
          <!--</div>-->
        <!--</form>-->
      <!--</div>-->
    <!--</div>-->
  <!--</div>-->
<!--</div>-->
<!-- <div class="container ">

  <div class="col-md-6 col-md-offset-3">
    <form action="http://193.112.113.194:8769/store/auth/login" method="post" class="form-horizontal">
      <div class="form-group">
        <label for="exampleInputEmail1">Username</label>
        <input type="text" class="form-control" id="exampleInputEmail1" placeholder="username" name="username">
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1">Password</label>
        <input type="password" class="form-control" id="exampleInputPassword1" placeholder="password" name="password">
      </div>
      <div class="col-md-5">
        <input type="submit" value="Submit" class="btn btn-default">
      </div>
      <div class="col-md-4 col-md-offset-3">
        <input type="reset" value="Reset" class="btn btn-default">
      </div>
    </form>
  </div>
</div>
<!-- <div class="container">
  <form (ngSubmit])='loginUser()' ></form>
</div> -->
<div class="container" [hidden]="submitted">

  <div class="col-md-6 col-lg-offset-3">
    <h2 class="text-center">用户登陆</h2>
    <form #heroForm="ngForm" (ngSubmit)="onSubmit()">
      <div class="form-group">
        <label for="username">姓名</label>
        <input type="text" class="form-control" id="username" required [(ngModel)]="model.username" name="username"
               #name="ngModel">

      </div>
      <div [hidden]="name.valid || name.pristine"
           class="alert alert-danger">
        Name is required
      </div>
      <div class="form-group">
        <label for="alterEgo">密码</label>
        <input type="password" class="form-control" id="alterEgo" name="password" required [(ngModel)]="model.password">
      </div>
      <button type="submit" class="btn btn-success col-md-2 col-lg-offset-2" [disabled]="!heroForm.form.valid">Submit
      </button>
      <button type="reset" class="btn btn-success col-md-2 col-lg-offset-3" [disabled]="!heroForm.form.valid">Reset
      </button>

    </form>
  </div>
</div>

<div [hidden]="!submitted" class="container">

</div>
